#!bin/bash
###卸载HTTP服务
echo -e "\033[37m 正在关闭所有服务=============================================—————\033[31m"
systemctl stop httpd
echo -e "\033[37m 正在卸载HTTP服务=============================================—————\033[31m"
yum remove  $(rpm -qa | grep http) -y
echo -e "\033[37m 服务卸载完成\033[31m"
echo -e "\033[37m 正在删除文件=============================================—————\033[31m"
rm -rf /etc/httpd
rm -rf /var/www/html